package com.example.springboot.web;


import com.alibaba.dubbo.config.annotation.Reference;
import dubbo.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {


    @Reference(interfaceName = "dubbo.service.UserService" ,version = "1.0.0" ,check = false)
    private UserService userService;


    @RequestMapping("/say")
    public String query(){


        return userService.say("aaa");
    }

}
